/*-----------------------------------------------------------------------------
	The contents of this file are subject to the Mozilla Public License
	Version 1.1 (the "License"); you may not use this file except in
	compliance with the License.You may obtain a copy of the License at
	http://www.mozilla.org/MPL/MPL-1.1.html
	
	Software distributed under the License is distributed on an "AS IS"
	basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
	License for the specific language governing rights and limitations
	under the License.
	
	The Original Code is Fever Framework code.
	
	The Initial Developer of the Original Code is Romain Ecarnot.
	Portions created by Initial Developer are Copyright (C) 2006
	the Initial Developer. All Rights Reserved.
	
	Contributor(s):
	
	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
-----------------------------------------------------------------------------*/

/**
 * Abstract visual loader implementation for <strong>I.O.C.</strong> 
 * context file.
 * 
 * <p>You can use {@link  fever.ioc.visual.BasicVisualLoader} loader to display 
 * basic bar progression during context loading.
 * 
 * @see fever.ioc.visual.BasicVisualLoader
 * 
 * @author Romain Ecarnot
 */
class fever.ioc.visual.AbstractVisualLoader extends MovieClip
{
	//-------------------------------------------------------------------------
	// Public API
	//-------------------------------------------------------------------------
	
	/**
	 * Triggered during loading progression.
	 * 
	 * <p>application-loader node attribute : progress-callback
	 */
	public function onProgress( value : Number ) : Void
	{
		
	}
	
	/**
	 * Triggered when loading type change.
	 * 
	 * <p>application-loader node attribute : name-callback
	 */
	public function onName( name : String ) : Void
	{
		
	}
	
	/**
	 * Triggered when a loading timeout is broadcast.
	 * 
	 * <p>application-loader node attribute : timeout-callback
	 */
	public function onTimeOut(  ) : Void
	{
		
	}
	
	/**
	 * Triggered when context loading is complete.
	 * 
	 * <p>application-loader node attribute : built-callback
	 */
	public function onBuild(  ) : Void
	{
		
	}
	
	/**
	 * Triggered when context is parsed and assembled.
	 * 
	 * <p>application-loader node attribute : init-callback
	 */
	public function onInit(  ) : Void
	{
		
	}
	
	
	//-------------------------------------------------------------------------
	// Private implementation
	//-------------------------------------------------------------------------
	
	/**
	 * Constructor.
	 * 
	 * <p>When you extends this abstract class you have to overload the target 
	 * argument to associate target with class.<br />
	 * 
	 * {@code
	 *   target.__proto__ = this.__proto__;
	 *   target.__constructor__ = AbstractVisualLoader; //real Loader class
	 *   this = target;
	 * }
	 * 
	 * @param target MovieClip reference ( usually pass by MTASC main() call )
	 * 
	 * @see fever.ioc.visual.BasicVisualLoader
	 */ 
	private function AbstractVisualLoader( target ) 
	{
		
	}
}